﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SysSurv.dtl
{
    [Serializable]
    class Question
    {
        #region Attributes
        private long _i64Id;
        private string _strQuestion;
        private List<Answer> _lstAnswers = new List<Answer>();
        #endregion
        #region Properties;
        public long i64Id
        {
            get { return _i64Id; }
            set { _i64Id = value; }
        }
        public string strQuestion
        {
            get { return _strQuestion; }
            set { _strQuestion = value; }
        }
        public List<Answer> lstAnswers
        {
            get { return _lstAnswers; }
            set { _lstAnswers = value; }
        }
        #endregion
        #region Constructors
        public Question() { }
        public Question(string vQuestion, List<Answer> vAnswers) {
            _strQuestion = vQuestion;
            _lstAnswers = vAnswers;
        }
        public Question(long vId, string vQuestion, List<Answer> vAnswers) {
            _i64Id = vId;
            _strQuestion = vQuestion;
            _lstAnswers = vAnswers;
        }
        #endregion
        public override string ToString()
        {
            return _strQuestion;
        }
    }
}
